package com.moecollege.umiao.controller;

import com.moecollege.moecollegelib.base.BaseFragment;
import com.moecollege.umiao.R;
import com.moecollege.umiao.frame.UmiaoApplication;
import com.moecollege.umiao.ui.TestFragment;
import com.moecollege.umiao.ui.navitabs.ChannelFragment;
import com.moecollege.umiao.ui.navitabs.GameFragment;
import com.moecollege.umiao.ui.navitabs.ImageFragment;
import com.moecollege.umiao.ui.navitabs.IndexFragment;
import com.moecollege.umiao.ui.navitabs.VideoFragment;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by nieyonghui on 15-8-5.
 */
public class MainFrameCotroller {
    public static List<String> getTabTilte(){
        List<String> titles = new ArrayList<String>();
        titles.add(UmiaoApplication.getInstance().getResources().getString(R.string.tab_1));
        titles.add(UmiaoApplication.getInstance().getResources().getString(R.string.tab_2));
        titles.add(UmiaoApplication.getInstance().getResources().getString(R.string.tab_3));
        titles.add(UmiaoApplication.getInstance().getResources().getString(R.string.tab_4));
        titles.add(UmiaoApplication.getInstance().getResources().getString(R.string.tab_5));

        return titles;
    }

    public static List<BaseFragment> getPagers() {
        List<BaseFragment> fragments = new ArrayList<BaseFragment>();
        fragments.add(new IndexFragment());
        fragments.add(new ChannelFragment());
        fragments.add(new ImageFragment());
        fragments.add(new VideoFragment());
        fragments.add(new GameFragment());
        return fragments;
    }
}
